package com.qf.service;/*
 *保护你的大熊
 *2021/11/18
 *21:10
 */

import com.qf.mapper.UserMapper;
import com.qf.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public List<User> findUserAll() {

        return userMapper.findAll();
    }

    @Override
    public void insert(User user) {
        userMapper.insertUser(user);

    }

    @Override
    public void delete(Integer id) {
        userMapper.deleteUser(id);
    }

    @Override
    public void update(User user) {
        userMapper.updateUser(user);
    }
}
